args JobIdFile 


import delimited `JobIdFile', delimiter(space) clear
keep if v1 == "Submitted" & v2 == "batch" & v3 == "job"
keep v4
destring v4, force replace
local jobid = v4[1]

local cmd "srun --dependency=afterok:`jobid'  echo wait for jobid `jobid'"
di "`cmd'"
shell `cmd'
